﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zatify.Domain.Entities.Extensions
{
    public static class Extensions
    {
        public static DateTime ToUserLocalTime(this DateTime dateTime, double userMinutesOffset)
        {
            return dateTime.AddMinutes(userMinutesOffset);
        }

        public static DateTime ToUTC(this DateTime dateTime, int gmt)
        {
            return dateTime.AddHours(-gmt);
        }
    }
}
